Tag Link | [Image->Composite] | Category | Image |
---|---|---|---|
Type | Member | Source Available | Yes |
Support | Preferred | Version | 7.0 |
Change | Unchanged | Data Source | Any |
Output Type | None | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
Composites a second image onto the current image. Requires a second Lasso image variable to be composited.
[Image Variable->(Composite: Image Variable #2,
Optional Parameters | |
---|---|
-Op | Specifies the composite method which affects how the second image is applied to the first image (a list of operators is shown below). |
-Left | Specifies the offset of the second image from the left side of the first image in integer pixels. |
-Top | Specifies the offset of the second image from the top of the first image in integer pixels. |
-Opacity | Specifies the opacity of the composited second image, where 0 is fully opaque and 1.0 is fully transparent. |
To overlay an image on top of another image:
Use the [Image->Composite] tag to add a defined image variable to a second defined image variable. The following example adds image2.jpg offset by five pixels in the upper left corner of image1.jpg.
[Var: 'MyImage1' =(Image: '/images/image1.jpg')]
[Var: 'MyImage2' =(Image: '/images/image2.jpg')]
[$MyImage1->(Composite: $MyImage2,
[$MyImage1->(Save: '/images/image1.jpg')]
To add a watermark to an image:
Use the [Image->Composite] tag with the
[Var: 'MyImage1' =(Image: '/images/image1.jpg')]
[Var: 'MyImage2' =(Image: '/images/image2.jpg')]
[$MyImage1->(Composite: $MyImage2,
[$MyImage1->(Save: '/images/image1.jpg')]
To shade image with a second image:
Use the [Image->Composite] tag with the Bumpmap operator to shade a defined image variable over a second defined image variable.
[Var: 'MyImage1' =(Image: '/images/image1.jpg')]
[Var: 'MyImage2' =(Image: '/images/image2.jpg')]
[$MyImage1->(Composite: $MyImage2,
[$MyImage1->(Save: '/images/image1.jpg')]
To return the pixel difference between two images:
Use the [Image->Composite] tag with the Difference operator to return the pixel difference between two defined image variables.
[Var: 'MyImage1' =(Image: '/images/image1.jpg')]
[Var: 'MyImage2' =(Image: '/images/image2.jpg')]
[$MyImage1->(Composite: $MyImage2,
[$MyImage1->(Save: '/images/image1.jpg')]